import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
    {
        path:'/',
        redirect:'/index',
    },
    {
        path:'/index',
        component:()=> import('../views/index/index.vue')
    },
    {
        path:'/agents',
        component:()=> import('../views/agents/index.vue')
    },
    {
        path:'/category',
        component:()=> import('../views/category/index.vue'),
    },
    {
        path:'/page',
        component:()=> import('../views/page/index.vue')
    },
    {
        path:'/detail',
        component:()=> import('../views/detail/index.vue')
    },
    {
        path:'/detail1',
        component:()=> import('../views/detail1/index.vue')
    }
]

const router = new Router({
    routes,
    mode:'hash'
})

export default router